<?php


	/*第一步:注册用户*/

echo	$username='loveask'.$yearvar;
	$password='loveask'.$yearvar;
	$email='loveask'.$yearvar.'@163.com';
	$postdata='username='.urlencode($username).'&password='.$password.'&confirmpw='.$password.'&email='.urlencode($email).'&command=registed&registsubmit=1&formhash=d41d8cd98f00b204e9800998ecf8427e';
	$set_cookie=tfopen($site_url.'/register.php', $postdata);
	$cookie=trim(substr($set_cookie,4));
	echo ' register success '.$cookie."\n\n\n\n";


	/*第三步：开始发送ad*/
	$qtitle='求一个php问答系统？';
	$qsupply='我也想用问答系统建一个小网站，而且需要需要php版本的问答系统，cyask支持uc整合么，想跟我的DZ整合一下，Tipask官网
http://www.tipask.com 跟cyask比起来怎么样，希望站长指点下，谢谢！
</body>';
	
	$postdata='qtitle='.urlencode($qtitle).'&qsupply='.urlencode($qsupply).'&ClassLevel1='.$cid.'&ClassLevel2=&ClassLevel3=&givescore=0&myscore=20&cid='.$cid.'&command=ask&url=&submit=1&formhash=d41d8cd98f00b204e9800998ecf8427e';
	tfopen($site_url.'/ask.php', $postdata, $cookie);
	
	
?>